package com.yimi.yinhepda.adapter.viewholder

import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.yimi.yinhepda.R
import com.yimi.yinhepda.db.table.FuncBtnTable

/**
 * 功能列表子项
 */
class ChildViewHolder(view: View) : RecyclerView.ViewHolder(view) {
    private val mFuncPic = view.findViewById<ImageView>(R.id.iv_func_pic)
    private val mFuncName = view.findViewById<TextView>(R.id.tv_func_name)
    fun update(item: FuncBtnTable) {
        mFuncName.text = item.name
    }
}